{extend name="property/public/insidePageBase" /}
{block name="title"}编辑基它费用{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form layui-form-pane">
            <div class="layui-row">
                <div class="layui-col-xs6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">费用类别</label>
                        <div class="layui-input-block">
                            <input type="text" name="energy_name" value="{$info['full_cate_name']??''}" disabled  autocomplete="off" placeholder="请输入费用类别" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs6">
                    <div class="layui-form-item layui-input-group">
                        <label class="layui-form-label">费用金额</label>
                        <div class="layui-input-block" style="width: 260px;">
                            <input type="text" name="amount" value="{$info['amount']??''}" autocomplete="off" placeholder="请输入费用金额" class="layui-input" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                        </div>
                        <div class="layui-input-split layui-input-suffix">¥</div>
                    </div>
                </div>
            </div>
            {if $info['overdue_day'] >= 1}
            <div class="layui-form-item layui-input-group">
                <div class="layui-input-split layui-input-prefix">&nbsp;&nbsp;&nbsp;&nbsp;截 止 至&nbsp;&nbsp;&nbsp;&nbsp;</div>
                <input type="text" value="{$info['cutoff_date']??''}" disabled autocomplete="off" class="layui-input" placeholder="开始日期" style="width: 110px;">
                <div class="layui-input-split layui-input-prefix">&nbsp;&nbsp;&nbsp;&nbsp;己 逾 期&nbsp;&nbsp;&nbsp;&nbsp;</div>
                <input type="text" value="{$info['overdue_day']??''}" disabled autocomplete="off" class="layui-input" placeholder="开始日期">
                <div class="layui-input-split layui-input-suffix"> 天，滞纳金</div>
                <input type="text" value="{$info['overdue_fine']??''}" disabled autocomplete="off"  class="layui-input" placeholder="结束日期">
                <div class="layui-input-split layui-input-suffix"> ¥</div>
            </div>
            {/if}
            <div class="layui-row">
                <div class="layui-col-xs8">
                    <div class="layui-form-item">
                        <div class="layui-input-group start-end-time">
                            <div class="layui-input-split layui-input-prefix">&nbsp;&nbsp;&nbsp;&nbsp;计费周期&nbsp;&nbsp;&nbsp;&nbsp;</div>
                            <input type="text" name="start_date" value="{$info['start_date']??''}" autocomplete="off" id="start_date" class="layui-input" placeholder="开始日期">
                            <div class="layui-input-split layui-input-suffix"> 日 至</div>
                            <input type="text" name="end_date" value="{$info['end_date']??''}" autocomplete="off" id="end_date" class="layui-input" placeholder="结束日期">
                            <div class="layui-input-split layui-input-suffix"> 止</div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-xs4">
                    <div class="layui-input-group">
                        <div class="layui-input-split layui-input-prefix">&nbsp;&nbsp;优 惠&nbsp;&nbsp;</div>
                        <input type="text" name="minus_amount" value="{$info['minus_amount']??''}" autocomplete="off" placeholder="优惠金额" class="layui-input" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                        <div class="layui-input-split layui-input-suffix">¥</div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入费用说明" class="layui-textarea" name="remark">{$info['remark']??''}</textarea>
                </div>
            </div>
            <div class="layui-form-item layui-hide">
                <button class="layui-btn" lay-submit lay-filter="submitBtn" id="submitBtn">提交</button>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['form', 'layer', 'laydate'], function () {
        var form = layui.form,layer = layui.layer,  $ = layui.$,laydate = layui.laydate;
        laydate.render({
            elem: '.start-end-time'
            ,range: ['#start_date', '#end_date']
        });
    });
</script>
{/block}